from collections import deque
import copy
user_list=['bobby1',[29,175]]
user_deque=deque(user_list)
print(user_deque)
user_deque.appendleft('bobby3')
user_deque2=user_deque.copy()
user_deque3=copy.deepcopy(user_deque)
print(id(user_deque),id(user_deque2),id(user_deque3))
print(user_deque,user_deque2,user_deque3)
user_deque[2].append('test')
print(user_deque,user_deque2,user_deque3)
user_deque.extend(user_deque3)
user_deque2.extendleft(user_deque3)
print(user_deque,user_deque2)
user_deque3.insert(0,'bobby2')
print(user_deque3)
user_deque3.popleft()
print(user_deque3)
user_deque3.reverse()
print(user_deque3)
